﻿@page
@model CampusNews.Pages.Users.CreateModel

        @{
        ViewData["Title"] = "Create";
        }
        
        <h1>创建用户</h1>
        
    <h4>请输入您的信息：</h4>
    <hr />
    <div class="row">
    <div class="col-md-4">
    <form method="post">
    <div asp-validation-summary="ModelOnly" class="text-danger"></div>
            <div class="form-group">
                <label asp-for="User.Email" class="control-label">电子邮箱</label>
                <input asp-for="User.Email" class="form-control" />
                <span asp-validation-for="User.Email" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="User.Token" class="control-label">姓名</label>
                <input asp-for="User.Token" class="form-control" />
                <span asp-validation-for="User.Token" class="text-danger"></span>
            </div>
            <div class="form-group">
                <label asp-for="User.TokenExpiration" class="control-label">出生年月</label>
                <input asp-for="User.TokenExpiration" class="form-control" />
                <span asp-validation-for="User.TokenExpiration" class="text-danger"></span>
            </div>
            <div class="form-group">
                <input type="submit" value="Create" class="btn btn-primary" />
            </div>
        </form>
    </div>
</div>

<div>
    @* <a asp-page="Index">Back to List</a> *@
</div>

@section Scripts {
    @{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
